package com.suray.wcs.service.core.path.api.impl.task;

import com.suray.wcs.service.enums.TaskRgvProgress;

import java.util.ArrayList;
import java.util.List;

public class RgvSonTaskProcess {
    private List<Integer> pathIndexs;

    private List<TaskRgvProgress> progresses;

    private List<Integer> segments;

    public RgvSonTaskProcess() {
        pathIndexs = new ArrayList<>();
        progresses = new ArrayList<>();
        segments = new ArrayList<>();
    }

    public void put(int index, TaskRgvProgress progress, int segment) {
        pathIndexs.add(index);
        progresses.add(progress);
        segments.add((segment + 1) * 2);
    }

    public List<Integer> getPathIndexs() {
        return pathIndexs;
    }

    public List<TaskRgvProgress> getProgresses() {
        return progresses;
    }

    public List<Integer> getSegments() {
        return segments;
    }
}
